package org.jeecg.api.feign;

import org.jeecg.api.dto.openapi.RoutePathDTO;
import org.jeecg.common.api.vo.Result;
import org.jeecg.config.feign.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


//如果不需要token鉴权，接口上加@RequestHeader(CommonConstant.FEIGN_NON_AUTH)
@FeignClient(name = "remoteOpenAPIService", url = "${wlhyext.feign-domain:http://127.0.0.1:8080/wlhy168}", configuration = {FeignConfig.class})
public interface RemoteOpenAPIService {

    @PostMapping(value = "/feignopenapi/routepath")
    Result<?> routepath(@RequestBody RoutePathDTO routePathDTO);


    @PostMapping(value = "/feignopenapi/transTimeManage")
    Result<?> transTimeManage(@RequestBody List<RoutePathDTO> routePathDTOList);

}
